SEND NET MESSAGE STRING

This command will send a message containing a string to the specified player.

  Syntax
SEND NET MESSAGE STRING Player Number, String
  Parameters
Player Number
Integer
The Player Number must be an integer value and an existing player in the net game. A Player Number of zero will send the message to all players except you
String
String
The string to send

  Returns

This command does not return a value.

  Description

The Player Number must be an integer value and an existing player in the net game. A Player Number of zero will send the message to all players except you.

  Example Code
rem Network game can communicate numbers and strings
while inkey$()<>"x"
cls
rem Send Part
if mouseclick()=1
print "SENDING..."
send net message string 0,"hello world"
endif
rem Receive Part (from all other players)
get net message
if net message exists()=1 then print "RECEIVING..."
while net message exists()=1
if net message type()=3 then ReturnString$=net message string$()
get net message
endwhile
endwhile
  See also

MULTIPLAYER Commands Menu
Index